﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace ISFProject.Models
{
    public class School
    {

        [Key, ForeignKey("SchoolCupCoordinator")]
        public int SchoolId { get; set; }
        public String Name { get; set; }
        public String Mail { get; set; }
        public String Abbreviation { get; set; }

        public int AddressId { get; set; }
        public virtual Address Address { get; set; }

        public int NSSFId { get; set; }
        public virtual NSSF NSSF { get; set; }

        
        public virtual SchoolCupCoordinator SchoolCupCoordinator { get; set; }

        
        public virtual List<Team> Teams { get; set; }
    }
}